package com.cskaoyan.bean.wx_order;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class WXListOrderVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private String orderStatusText;
        private Integer aftersaleStatus;
        private Boolean isGroupin;
        private String orderSn;
        private Integer actualPrice;
        private List<GoodsListDTO> goodsList;
        private Integer id;
        private HandleOptionDTO handleOption;

        @NoArgsConstructor
        @Data
        public static class HandleOptionDTO {
            private Boolean cancel;
            private Boolean delete;
            private Boolean pay;
            private Boolean comment;
            private Boolean confirm;
            private Boolean refund;
            private Boolean rebuy;
            private Boolean aftersale;
        }

        @NoArgsConstructor
        @Data
        public static class GoodsListDTO {
            private Integer number;
            private String picUrl;
            private Integer price;
            private Integer id;
            private String goodsName;
            private List<String> specifications;
        }
    }
}
